#include <iostream>
#include <boost/tokenizer.hpp>
#include <string>

int main()
{
    std::string str = "\tHello\tworld\tfoo\tbar\tyow\tbaz\t\n";
    typedef boost::tokenizer<boost::char_separator<char> > 
        tokenizer;
    boost::char_separator<char> sep("\t", "", boost::keep_empty_tokens);
    tokenizer tokens(str, sep);
    for (tokenizer::iterator tok_iter = tokens.begin();
         tok_iter != tokens.end(); ++tok_iter)
      std::cout << "<" << *tok_iter << "> ";
    std::cout << "\n";
    return 0;
}

